
import $ from './jquery.js';

function createYear(elm,data){
    console.log(111111);
    console.log(elm.innerText);
    var year = 1900;
var timer = setInterval(function(){
   
        year = year +1;
    elm.innerHtml = year;
    console.log(111111);
    console.log(elm.innerText);
    if(year == data){
        clearInterval(timer);
    }
    },30)
}

var but = $('#frist-year');
createYear(but,2011);